package top.oylan.manager.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.oylan.manager.entity.Watched;
import top.oylan.manager.entity.example.WatchedExample;

@Mapper
public interface WatchedMapper {
    long countByExample(WatchedExample example);

    int deleteByExample(WatchedExample example);

    int insert(Watched record);

    int insertSelective(Watched record);

    List<Watched> selectByExample(WatchedExample example);

    int updateByExampleSelective(@Param("record") Watched record, @Param("example") WatchedExample example);

    int updateByExample(@Param("record") Watched record, @Param("example") WatchedExample example);

    Watched findUserWatched(Watched watched);
}